import service from '@/alova'

export const useUserInfoApi = () => {
  return service.Get('/data/user/info.json')
}

export const updatePasswordApi = (data: any) => {
  return service.Put('/data/success.json', data)
}

export const useUserApi = (id: number) => {
  return service.Get('/data/user/1.json')
}

const userApi = {
  getDetail: () => {
    return service.Get(`/api/v1/User`)
  }
}

export default userApi
